import request from '@/utils/request'

export default {
  // 获取讲师信息
  selectTeachers() {
    return request({
      url: `/eduTeacher/selectTeachers`,
      method: 'get'
    });
  },
  // 获取名称页面的名师信息
  selectTeachersForFront(page) {
    return request({
      url: `/eduTeacher/selectTeachersForFront`,
      method: 'post',
      data: page
    });
  },
  // 根据讲师id获取讲师信息和讲师课程信息
  selectCourseByTeacherId(teacherId) {
    return request({
      url: `/eduTeacher/selectCourseByTeacherId/${teacherId}`,
      method: 'get'
    });
  }
}
